home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / pdfopts.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-08-15  |  2.0 KB  |  89 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef PDF_OPTS_H
  8. #define PDF_OPTS_H
  9.  
  10. #include <QDialog>
  11. #include <QList>
  12. class QHBoxLayout;
  13. class QGridLayout;
  14. class QVBoxLayout;
  15. class QGroupBox;
  16. class QLineEdit;
  17. class QToolButton;
  18. class QCheckBox;
  19. class QPushButton;
  20.  
  21. #include "scribusapi.h"
  22. #include "scribusstructs.h"
  23. #include "tabpdfoptions.h"
  24. class ScribusView;
  25.  
  26. /**
  27.  * @file pdfopts.h
  28.  * @brief PDF export GUI code
  29.  */
  30.  
  31. class PDFOptions;
  32. class ScribusDoc;
  33.  
  34. /**
  35.  * @brief PDF export dialog
  36.  *
  37.  * Most of the guts of the dialog actually come from TabPDFOptions, which
  38.  * is also used by the preferences dialog.
  39.  */
  40. class SCRIBUS_API PDFExportDialog : public QDialog
  41. {
  42.     Q_OBJECT
  43.  
  44. public:
  45.     PDFExportDialog( QWidget* parent, const QString & docFileName,
  46.                      const QMap<QString, int > & DocFonts,
  47.                      ScribusView * currView, PDFOptions & pdfOptions,
  48.                      const QList<PDFPresentationData> & Eff,
  49.                      const ProfilesL & PDFXProfiles, const SCFonts & AllFonts,
  50.                      double unitRatio, const ProfilesL & printerProfiles);
  51.     ~PDFExportDialog() {};
  52.  
  53.     void updateDocOptions();
  54.     const QString cmsDescriptor();
  55.     const int colorSpaceComponents();
  56.     const QString getPagesString();
  57.  
  58. protected slots:
  59.     void DoExport();
  60.     void ChangeFile();
  61.     void fileNameChanged();
  62.     void enableSave();
  63.     void disableSave();
  64.  
  65. protected:
  66.     // Widgets
  67.     QVBoxLayout* PDFExportLayout;
  68.     QGridLayout* NameLayout;
  69.     QHBoxLayout* Layout7;
  70.     QGroupBox* Name;
  71.     QCheckBox* multiFile;
  72.     QToolButton* FileC;
  73.     QPushButton* OK;
  74.     QPushButton* Cancel;
  75.     QLineEdit* fileNameLineEdit;
  76.     TabPDFOptions* Options;
  77.  
  78.     // Other members
  79.     ScribusDoc* doc;
  80.     QList<PDFPresentationData> EffVal;
  81.     PDFOptions & Opts;
  82.     double docUnitRatio;
  83.     QString cmsDescriptorName;
  84.     int components;
  85.     const ProfilesL & appPrinterProfiles;
  86. };
  87.  
  88. #endif // PDF_OPTS_H
  89.